package com.java8.lambda;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @Author HBZ
 * @Date 2020/9/19 22:29
 * @Description
 */
public class Test {
    public static void main(String[] args) {
        MethodReferenceTest methodReferenceTest = new MethodReferenceTest();
        Runnable runnable=methodReferenceTest::m;
        Runnable runnable1=()->methodReferenceTest.m();
        runnable.run();
        runnable1.run();
    }
}
